Studio Web: live client-side preview of what the agent builds#3866
Draft
lezama wants to merge 4 commits into
Draft
Studio Web: live client-side preview of what the agent builds#3866lezama wants to merge 4 commits into
lezama wants to merge 4 commits into
Conversation
…lds (Carril A) Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Related issues
How AI was used in this PR
The code and this PR description were drafted with Claude Code under close direction, extracting and adapting the live preview from the exploration onto the merged foundation. I reviewed the diff, and every verification step (typecheck across all workspaces, lint, the full
apps/uitest suite — 233 tests, both UI build targets, and a live smoke test of the new endpoint + workspace binding) was run on this branch.Proposed Changes
#3816 put Studio's portable renderer in a browser talking to a local
studio web-server, but you couldn't see anything the agent did. This increment makes Studio Web visibly build a site: ask the agent to create something and watch it render, live, in the same browser tab.Two things land together because the preview needs both:
git statusis the change set, and a latergit pushis the publish/deploy step (a follow-up — this PR only reads the workspace for preview).The boundary stays clean: the agent and workspace live behind the same connector→
web-serverHTTP/SSE contract from #3816 (a new/api/sessions/:id/site-filesendpoint + apreviewsignal). The browser holds no tokens and talks only to that backend. Desktop is untouched: the IPC connector returns no workspace files, so the desktop app keeps rendering its own server-backedSitePreview.Testing Instructions
npm install.node apps/cli/dist/cli/main.mjs auth login.npm run build:web --workspace=apps/ui.node apps/cli/dist/cli/main.mjs web-serverand openhttp://localhost:8088.npm startbehaves exactly as before (no live-Playground panel; the normal site preview is unchanged).Pre-merge Checklist